package com.woniu.mall.service.impl;

import com.woniu.mall.mapper.MallPaymentInfoMapper;
import com.woniu.mall.pojo.MallPaymentInfo;
import com.woniu.mall.service.IMallPaymentInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.pay.feign.PayFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 坤
 * @since 2023-05-22
 */
@Service
public class MallPaymentInfoServiceImpl extends ServiceImpl<MallPaymentInfoMapper, MallPaymentInfo> implements IMallPaymentInfoService {
    @Resource
    private MallPaymentInfoMapper paymentInfoMapper;

    @Autowired
    private PayFeignClient payFeignClient;

    @Override
    public int addPaymentInfo(MallPaymentInfo paymentInfo) {
        int result = paymentInfoMapper.insert(paymentInfo);
        return result;
    }
}
